import { IAdapter } from "./IAdapter";
import { Service } from "./Service";

export class Adapter implements IAdapter{
    adaptee:Service;
    constructor(service:Service){
        this.adaptee =service;
    }
    transformation(data){
        console.log('transformation data')
        return data
    }
    method(data:any){
        this.adaptee.serviceMethod(this.transformation(data))
    }

}